import request from '@/utils/request'

// 文字内容列表
export function contentsLists(params?: Record<string, any>) {
    return request.get({ url: '/contents/list', params })
}

// 文字内容详情
export function contentsDetail(params: Record<string, any>) {
    return request.get({ url: '/contents/detail', params })
}

// 文字内容新增
export function contentsAdd(params: Record<string, any>) {
    return request.post({ url: '/contents/add', params })
}

// 文字内容编辑
export function contentsEdit(params: Record<string, any>) {
    return request.post({ url: '/contents/edit', params })
}

// 文字内容删除
export function contentsDelete(params: Record<string, any>) {
    return request.post({ url: '/contents/del', params })
}

// 获取所有子内容
export function contentsGetAllSub(params: Record<string, any>) {
    return request.get({ url: '/contents/getContent', params })
}
